<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>2.3.3数值和布尔值的解构赋值</title>
    </head>
    <body>
        <script>
            //【例2.20】数值和布尔值的解构赋值
            let {toString:s}=123;
            console.log(s===Number.prototype.toString);//true

            let {toString:b}=true;
            console.log(b===Boolean.prototype.toString );//true
        </script>
    </body>
</html>